CVE-2025-39839
batman-adv: fix OOB read/write in network-coding decode
Description
In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix OOB read/write in network-coding decode batadv_nc_skb_decode_packet() trusts coded_len and checks only against skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing payload headroom, and the source skb length is not verified, allowing an out-of-bounds read and a small out-of-bounds write. Validate that coded_len fits within the payload area of both destination and source sk_buffs before XORing.
INFO
Published Date :
Sept. 19, 2025, 4:15 p.m.
Last Modified :
Sept. 19, 2025, 4:15 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Validate coded_len fits within the payload area.
- Ensure skb lengths are verified before XORing.
- Apply the Linux kernel patch for batman-adv.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-39839
.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-39839
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-39839
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-39839
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-39839
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 19, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: batman-adv: fix OOB read/write in network-coding decode batadv_nc_skb_decode_packet() trusts coded_len and checks only against skb->len. XOR starts at sizeof(struct batadv_unicast_packet), reducing payload headroom, and the source skb length is not verified, allowing an out-of-bounds read and a small out-of-bounds write. Validate that coded_len fits within the payload area of both destination and source sk_buffs before XORing. Added Reference https://git.kernel.org/stable/c/1e36c6c8dc8023b4bbe9a16e819f9998b9b6a183 Added Reference https://git.kernel.org/stable/c/20080709457bc1e920eb002483d7d981d9b2ac1c Added Reference https://git.kernel.org/stable/c/30fc47248f02b8a14a61df469e1da4704be1a19f Added Reference https://git.kernel.org/stable/c/5d334bce9fad58cf328d8fa14ea1fff855819863 Added Reference https://git.kernel.org/stable/c/a67c6397fcb7e842d3c595243049940970541c48 Added Reference https://git.kernel.org/stable/c/bb37252c9af1cb250f34735ee98f80b46be3cef1 Added Reference https://git.kernel.org/stable/c/d77b6ff0ce35a6d0b0b7b9581bc3f76d041d4087 Added Reference https://git.kernel.org/stable/c/dce6c2aa70e94c04c523b375dfcc664d7a0a560a